import { _decorator } from "cc";
import { app } from "db://app-game/core/app";
import { Root } from "db://app-game/core/Root";
import { ecs } from "db://app-game/libs/ecs/ECS";
import { UIConfigData } from "./game/common/config/GameUIConfig";
import { smc } from "./game/common/ecs/model/SingletonModuleComp";
import { Initialize } from "./game/scene/initialize/Initialize";
const { ccclass, property } = _decorator;

@ccclass("Main")
export class Main extends Root {
  protected initGui(): void {
    app.gui.init(UIConfigData);
  }

  protected run() {
    // 1.设置单列加载实例页面
    smc.initialize = ecs.getEntity(Initialize);
  }
}
